<template>
	<view @touchmove.stop.prevent="">
		<button @click="myClick">发布评论</button>
		<ygc-comment ref="ygcComment" :placeholder="'发布评论'" @pubComment="pubComment"></ygc-comment>
		<ygc-comment ref="ygcComment" :placeholder="'发布评论'" @pubComment="pubComment"></ygc-comment>
	</view>
</template>

<script>
import ygcComment from '@/components/ygc-comment/ygc-comment.vue';
export default {
	components: { ygcComment },
	methods: {
		myClick(){
			this.$refs.ygcComment.toggleMask('show')
		},
		pubComment(text) {
			console.log(text);
		}
	}
};
</script>
